Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Exists Method & Re-activating Stopped Intervals #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AndrewDavid
Copy link

Using Version 0.3

  • Added the exists method to check if a specific interval is already defined and optionally checks if it is currently stopped
  • Updated timer object to include active element. This indicates whether the interval is currently stopped
  • Updated the start method to allow re-activating a previously stopped interval: Poll.start('name');
  • Updated objects on lines 18 & 19 (now lines 33 & 34) to use dot notation

Here is a fiddle that demonstrates the feature: http://jsfiddle.net/AndrewDavidJ/ZzJ8R/

+ ‘exists’ method
^ stop method now uses exists method before attempting to stop interval
^ changed objects on line 18 & 19 to use dot notation
+ you can re-activate a previously created interval
^ exists method also checks whether interval is active
^ minified changes
^ properly minified poll.min.js
@aalyusuf
Copy link

+1 for this

1 similar comment
@andro23
Copy link

andro23 commented May 29, 2019

+1 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants